<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet 
	version="2.0"
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
 	xmlns:svg="http://www.w3.org/2000/svg">
	
	<xsl:output method="xml"/>
	
	<xsl:param name="text" select="'Hello text-on-a-path world!'"/>

	<!-- Matthew Bystedt http://pike.port5.com 2005 -->		
	<xsl:template match="/">
		<svg xmlns="http://www.w3.org/2000/svg"
		     xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve"
		         width="200" height="110"
		         viewBox="0 0 200 110"  >

			<!-- Pattern Definition -->
			<defs>
		        <path id="path1" d="M25, 100 C10,10 175,10 175,100" />
			</defs>

			<!-- Path Text Example -->

		    <use xlink:href="#path1" fill="none" stroke="red"  />

		    <text font-size="19.5" fill="blue">
		        <textPath xlink:href="#path1"><xsl:value-of select="$text"/></textPath>
		    </text>
		  </svg>
	</xsl:template>

</xsl:stylesheet>
